<?php
require_once('lib/content.php');
require_once('lib/post.php');

$content = content_get_by_id('accueil');

echo '
<h2>'.$content['title'].'</h2>
<div class="justify">
'.html_entity_decode($content['text']).'
</div>';

// affichage des titres des news
?>
<br /><br />
<div class="news">
  <h2>Dernières actualités</h2>
  <?php
  $news = news_get_page(1);
  for($count = 0 ; $row = mysql_fetch_assoc($news) ; ++$count) {
	  echo '<p id="news-'.$count.'">
	  <a href="club-actualites.html#news-'.$row['id'].'" class="go">'.$row['title'].'</a>
	  &nbsp; ('.date_to_str($row['time_submit']).')</p>';
  }
  ?>
</div>
<div class="news-separator"></div>

